import { http } from './request'
export default {
  PagedList(data: any) {
    //设备状态
    return http.request({
      url: '/api/Repair/PagedList',
      method: 'post',
      data: data,
    })
  },
  Options() {
    //获取选项数据
    return http.request({
      url: '/api/Repair/Options',
      method: 'get',
    })
  },
  Export(data: any) {
    //导出数据
    return http.request({
      url: '/api/Repair/Export',
      method: 'post',
      data: data,
    })
  },
  Exists(data: any) {
    //检查是否存在
    return http.request({
      url: '/api/Repair/Exists',
      method: 'post',
      data: data,
    })
  },
  Create(data: any) {
    //创建报修记录
    return http.request({
      url: '/api/Repair/Create',
      method: 'post',
      data: data,
    })
  },
  Fetch(data: any) {
    //获取单条记录
    return http.request({
      url: '/api/Repair/Fetch',
      method: 'post',
      data: data,
    })
  },
  FetchModel(data: any) {
    //获取模型数据
    return http.request({
      url: '/api/Repair/FetchModel',
      method: 'post',
      data: data,
    })
  },
  Delete(data: any) {
    //删除报修记录
    return http.request({
      url: '/api/Repair/Delete',
      method: 'post',
      data: data,
    })
  },
  Update(data: any) {
    //更新报修记录
    return http.request({
      url: '/api/Repair/Update',
      method: 'post',
      data: data,
    })
  },
}
